package com.zly.entity;

import java.util.HashMap;
import java.util.Map;

public class ExecuteRecord {

    private final Object[] input;
    private final Object output;
    private final Map<String, Object> extraDataMap;

    public ExecuteRecord(Object[] input, Object output) {
        this.input = input;
        this.output = output;
        this.extraDataMap = new HashMap<>();
    }

    public void putExtraData(String key, Object value) {
        this.extraDataMap.put(key, value);
    }

    public Object[] getInput() {
        return input;
    }

    public Object getOutput() {
        return output;
    }

    public Map<String, Object> getExtraData() {
        return extraDataMap;
    }

}
